import request from "@/utils/request";

/**
 * @description: 生产准交率
 * @return {*}
 */
export function getProductionSczjl() {
  return request({
    url: "/productionBoard/left/sczjl",
    method: "get",
  });
}

/**
 * @description: 工单进度
 * @return {*}
 */
export function getProductionGdjd() {
  return request({
    url: "/productionBoard/center/gdjd",
    method: "get",
  });
}

/**
 * @description: 获取报工进度
 * @return {*}
 */
export function getProductionBgjd() {
  return request({
    url: "/productionBoard/right/bgjd",
    method: "get",
  });
}

/**
 * @description: 获取工单状态信息
 * @return {*}
 */
export function getProductionGdzt() {
  return request({
    url: "/productionBoard/center/gdzt",
    method: "get",
  });
}

/**
 * @description: 获取不良品分析
 * @return {*}
 */
export function getProductionBlyy(params) {
  return request({
    url: "/productionBoard/left/blyy",
    method: "get",
    params,
  });
}

/**
 * @description: 未结案工单入库详情
 * @return {*}
 */
export function getProductionGdrkxq() {
  return request({
    url: "/productionBoard/right/gdrkxq",
    method: "get",
  });
}

/**
 * @description: 每月未结案计划单和销售下的订单详情（不要详细的工单，只要销售下的未生产完成成品单）
 * @return {*}
 */
export function getProductionGdrkxqrj1() {
  return request({
    url: "/productionBoard/right/gdrkxqrj1",
    method: "get",
  });
}

/**
 * @description: 每周工单完成详请已完成工单和总共单的对比
 * @return {*}
 */
export function getProductionGdrkxqrj2() {
  return request({
    url: "/productionBoard/right/gdrkxqrj2",
    method: "get",
  });
}

/**
 * @description: 在制工单详情
 * @return {*}
 */
export function getProductionZzgd() {
  return request({
    url: "/productionBoard/right/zzgd",
    method: "get",
  });
}

/**
 * @description: 获取生产良品率
 * @param {*} params
 */
export function getProdGoodYield(params) {
  return request({
    url: "/prod/good/yield",
    method: "get",
    params,
  });
}

/**
 * @description: 获取良品率和不良品数量 按照日期来分组
 * @param {*} params
 */
export function getProdTotalCountOfDate(params) {
  return request({
    url: "/prod/good/bad/count/date",
    method: "get",
    params,
  });
}

/**
 * @description: 获取产值  单价取得是销售订单的
 * @param {*} params
 */
export function getProdOutputValue(params) {
  return request({
    url: "/prod/output/value/ofsale",
    method: "get",
    params,
  });
}

/**
 * @description: 获取车间的产值
 */
export function getProdOutputValueOfLine(params) {
  return request({
    url: "/prod/output/value/ofsale/line",
    method: "get",
    params,
  });
}

/**
 * @description: 获得产品直通率
 */
export function getProductThroughputRate(params) {
  return request({
    url: "/prod/output/value/ofsale/productThroughputRate",
    method: "get",
    params,
  });
}

/**
 * @description: 不良曲线图
 */
export function getDefectiveCurveChart(params) {
  return request({
    url: "/prod/output/value/ofsale/defectiveCurveChart",
    method: "get",
    params,
  });
}
